Skip to content

feat(rust): SQLite execute_query with streamed rows (channel) - #1929

Merged
ZhuchkaTriplesix merged 1 commit into
epic/tauri-migrationfrom
issue/1872-sqlite-query-stream
Nov 15, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
epic/tauri-migrationfrom
issue/1872-sqlite-query-stream

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • QueryEvent IPC shape: columns → rows batches → done / error
  • db_execute_query streams via Tauri Channel (default limit 5000, batch 256)
  • SQLite connection held behind Arc so the registry lock is not held for the full query
  • Unit tests prove batches stay capped and limit truncation works

Closes #1872

Test plan

  • cargo test (20 tests)
  • Frontend Channel consumer lands with editor/grid issues

Add db_execute_query that emits columns / batched rows / done events so
large results are not shipped in a single IPC payload.
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 11e0067 into epic/tauri-migration Nov 15, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1872-sqlite-query-stream branch November 15, 2026 04:00
@github-actions github-actions Bot added sqlite SQLite database driver and workspace P1 High priority / Core capability tauri Tauri 2 / apps/tauri migration track rust Rust backend (src-tauri / crates) labels Nov 15, 2026
@github-actions github-actions Bot added this to the Tauri migration milestone Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1 High priority / Core capability rust Rust backend (src-tauri / crates) sqlite SQLite database driver and workspace tauri Tauri 2 / apps/tauri migration track

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant